package com.data.modules.online.cgreport.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import java.util.Map;

import com.data.modules.online.cgreport.entity.OnlCgreportParam;
import org.apache.ibatis.annotations.Param;
import com.data.modules.online.cgreport.entity.OnlCgreportHead;

public interface OnlCgreportHeadMapper extends BaseMapper<OnlCgreportHead> {
    List<Map<String, Object>> executeSelect(@Param("sql") String str);

    List<Map<?, ?>> executeSelete(@Param("sql") String str);

    List<Map<String, Object>> queryCgReportItems(@Param("cgrheadId") String str);

    Map<String, Object> queryCgReportMainConfig(@Param("reportId") String str);

    List<OnlCgreportParam> queryCgReportParams(@Param("cgrheadId") String str);

    Long queryCountBySql(@Param("sql") String str);

    List<Map<String, Object>> selectByCondition(@Param("sqlStr") String str, @Param("param") Map<String, Object> map);

    @InterceptorIgnore(tenantLine = "1")//Encountered unexpected token: "=" "="
    IPage<Map<String, Object>> selectPageByCondition(Page<Map<String, Object>> page, @Param("sqlStr") String str, @Param("param") Map<String, Object> map);
    @InterceptorIgnore(tenantLine = "1") //Encountered unexpected token: "=" "="
    IPage<Map<String, Object>> selectPageBySql(Page<Map<String, Object>> page, @Param("sqlStr") String str);
}
